package com.rd.teacher.jichao.day01;

public class People extends Object {
    String region;
    People(){
        this.region = "地球人";
        System.out.println(this.region);
    }

    public void info(){
        System.out.println("info");
        System.out.println(this.region);
    }

    public static void main(String[] args) {
//        Chinese chinese = new Chinese();
//
//        chinese.info();
        Object obj = new People();
        System.out.println(obj.getClass());
        Object obj1 = new People();
        obj.equals(obj1);
    }
}
class Chinese extends People{
    Chinese(){
        this.region = "中国人";
        System.out.println(this.region);
    }

    @Override
    public void info(){
        super.info();
    }

}